Inbox Property (Session Object) 

The Inbox property returns a Folder object representing the current user s default Inbox folder. Read-only.

Syntax

objSession.Inbox

Data Type

Object (Folder object)

Remarks

This property returns Nothing when the current user does not have an Inbox folder.

In addition to the general ability to navigate through the formal collection and object hierarchy, the OLE Messaging Library supports properties that let your application directly access the most common folder objects: 

    The IPM subtree

    Inbox

    Outbox

 

The following sample code uses the Session object s Inbox property to initialize a Folder object:

' from the function Session_Inbox

    '   make sure the Session object is valid...

    Set objFolder = objSession.Inbox

    If objFolder Is Nothing Then

        MsgBox "Failed to open Inbox"

        Exit Function

    End If

    MsgBox "Folder name = " & objFolder.Name

    Set objMessages = objFolder.Messages

    If objMessages Is Nothing Then

        MsgBox "Failed to open folder's Messages collection"

        Exit Function

    End If

 

See Also

Folder Object

Outbox Property (Session Object)1Q5W.E